home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: ux5.cso.uiuc.edu!djhoward
  2. From: djhoward@ux5.cso.uiuc.edu (howard daniel joseph)
  3. Newsgroups: comp.sys.amiga.programmer,uiuc.class.cs110c,uiuc.class.cs223
  4. Subject: How do I define my integers?
  5. Date: 13 Jan 1996 02:04:00 GMT
  6. Organization: University of Illinois at Urbana
  7. Approved: Mu
  8. Message-ID: <4d73ug$25v@vixen.cso.uiuc.edu>
  9. NNTP-Posting-Host: dclsn34.cen.uiuc.edu
  10. To: uiuc-class-cs110c@ux1.cso.uiuc.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12. Status: R
  13. Content-Length: 1451
  14.  
  15.     Okay. I'm writing a program under GCC on my Amiga.
  16.  
  17.     But I'm confused to hell over integer limits.
  18.  
  19.     My book talks about 2 bit and 4 bit integers ... and four bit 
  20. integers like what it describers long integers to be. Of course there's 
  21. unsigned integers and the like too.
  22.  
  23. How do I declare signed versus unsigned integers?
  24.  
  25. How do I know how many bits my integers are using?
  26.  
  27. How do I declare signed and unsigned long integers?
  28.  
  29. What's with these "doubles" the book mysteriously alludes to?
  30.  
  31. What *am* I creating when I type;
  32.  
  33. int somevalue;
  34. (ie Is it signed/unsigned? How many bits?)
  35.  
  36. I know many of the answers here, but if I could get them all from one 
  37. source I'd feel a lot better.
  38.  
  39. I need two sorts of values for my project;
  40.  
  41. An integer (unsigned) that can handle, 6, though ideally 9 places (Just 
  42. under 250000000 would be the maximum forseen possible value here.)
  43.  
  44. An integer that can handle a much bigger number ... 12 places at least for 
  45. now.
  46.  
  47. Can I perform simple maths (addition, division) between integers of 
  48. different types? I'd assume so, right?
  49.  
  50. --
  51. =====///====================================================================
  52. ====///=======This message brought to you by dannyman@uiuc.edu==============
  53. \\\///=========HOME PAGE! http://www.uiuc.edu/ph/www/djhoward ==============
  54. =\XX/A1200==================================================================
  55.     My views are my own, and not those of my employer or UIUC. Happy Jim?
  56.  
  57.